define(function(require,exports,module){
	var Grid=require("grid-1.0.0");
	var columns=[{
		key:"meetingDate",
		name:"会议时间",
		format :"date",
		    formatparams:{
			  mode:"YYYY-MM-DD HH:mm:SS"
		    }
	},{
		key:"meetingRoom",
		name:"会议室"
	},{
		key:"peoCount",
		name:"参会人数"
	},{
		key:"screenings",
		name:"场次",
		/*format:function(row,value){
			if(value.finishDate){
				return "已完成";
			}else{
				return "未完成";
			}
			
		}*/
		
	}];
	
	var SC_interview={
		init:function(widget,params){
			return new Grid({
				parentNode:".J-member-interview",
				url:"api/shiftchange/querymeeting",
				params:function(){
					var subnav=widget.get("subnav");
					return {
						//typeIn:["AdvancedAge","LivingAlone"],
						//building:subnav.getValue("building"),
						createDate:params.startdate,
						createEndDate:params.startdate + 24*3600*1000,
						//shiftChangeDate:params.startdate,
						fetchProperties:"*,"
					};
				},
				model:{
					head:{
						title:"会议"
					},
					columns:columns
				}
			});
		},
		initPrint:function(widget,params){
			return new Grid({
				autoRender:false,
				isInitPageBar:false,
				parentNode:".J-member-interview-print",
				model:{
					head:{
						title:"会议"
					},
					columns:columns
				}
			});
			
		}
	};
	
	module.exports=SC_interview;
});